package com.dzsw.javabase.file;

public class ResourceSample {

    public static void main(String[] args) {
        String basePath = ResourceSample.class.getClassLoader().getResource("log4j2.xml").getPath().substring(1);
        System.out.println(basePath);
    }
}
